<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{listarPoliticaA.page1}" id="page1">
            <ui:html binding="#{listarPoliticaA.html1}" id="html1">
                <ui:head binding="#{listarPoliticaA.head1}" id="head1">
                    <ui:link binding="#{listarPoliticaA.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{listarPoliticaA.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{listarPoliticaA.form1}" id="form1" virtualFormsConfig="virtualForm1 | |">
                        <ui:table augmentTitle="false" binding="#{listarPoliticaA.table1}" id="table1" lite="true" paginateButton="true"
                            paginationControls="true" style="left: 144px; top: 384px; position: absolute; width: 575px" title="Políticas" width="575">
                            <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                            <ui:tableRowGroup binding="#{listarPoliticaA.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                sourceData="#{listarPoliticaA.sct0002DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{listarPoliticaA.tableColumn1}" headerText="Código" id="tableColumn1" sort="CDGOMDLOPLTCA">
                                    <ui:staticText binding="#{listarPoliticaA.staticText1}" id="staticText1" text="#{currentRow.value['CDGOMDLOPLTCA']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listarPoliticaA.tableColumn2}" headerText="Nombre" id="tableColumn2" sort="DSCRPCION">
                                    <ui:staticText binding="#{listarPoliticaA.staticText5}" id="staticText5" text="#{currentRow.value['DSCRPCION']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listarPoliticaA.tableColumn5}" headerText="Fecha Activacion" id="tableColumn5" sort="FCHAINCIO">
                                    <ui:staticText binding="#{listarPoliticaA.staticText6}" id="staticText6" text="#{currentRow.value['FCHAINCIO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listarPoliticaA.tableColumn6}" headerText="Fecha Desactivacion" id="tableColumn6" sort="FCHAFN">
                                    <ui:staticText binding="#{listarPoliticaA.staticText7}" id="staticText7" text="#{currentRow.value['FCHAFN']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{listarPoliticaA.tableColumn3}" headerText="Opción 1" id="tableColumn3">
                                    <ui:button action="#{listarPoliticaA.reglas_action}" binding="#{listarPoliticaA.reglas}" id="reglas" mini="true"
                                        primary="true" text="Reglas..."/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{listarPoliticaA.tableColumn4}" headerText="Opción 2" id="tableColumn4">
                                    <ui:button action="#{listarPoliticaA.reporte_action}" binding="#{listarPoliticaA.reporte}" disabled="true" id="reporte"
                                        mini="true" primary="true" text="ver Reporte"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="right" binding="#{listarPoliticaA.tableColumn7}" headerText="Opción 3" id="tableColumn7">
                                    <ui:button action="#{listarPoliticaA.copy_action}" binding="#{listarPoliticaA.copy}" id="copy" mini="true" primary="true" text="Copiar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:label binding="#{listarPoliticaA.label1}" id="label1" style="left: 144px; top: 192px; position: absolute" text="Producto:"/>
                        <ui:label binding="#{listarPoliticaA.label2}" id="label2" style="left: 144px; top: 240px; position: absolute" text="Sublinea:"/>
                        <ui:label binding="#{listarPoliticaA.label3}" id="label3" style="left: 144px; top: 288px; position: absolute" text="Tipo Solicitud:"/>
                        <ui:staticText binding="#{listarPoliticaA.staticText2}" id="staticText2" style="left: 264px; top: 192px; position: absolute" text="#{listarPoliticaA.sct0004DataProvider.value['SCT0004.DSCRPCION']}"/>
                        <ui:staticText binding="#{listarPoliticaA.staticText3}" id="staticText3" style="left: 264px; top: 240px; position: absolute" text="#{listarPoliticaA.sct0019DataProvider.value['SCT0019.DSCRPCIONSBLNEA']}"/>
                        <ui:staticText binding="#{listarPoliticaA.staticText4}" id="staticText4" style="left: 264px; top: 288px; position: absolute" text="#{listarPoliticaA.sct0021DataProvider.value['SCT0021.DSCRPCIONTPOSLCTUD']}"/>
                        <ui:messageGroup binding="#{listarPoliticaA.messageGroup1}" id="messageGroup1" style="left: 408px; top: 192px; position: absolute"/>
                        <ui:button action="#{listarPoliticaA.back_action}" binding="#{listarPoliticaA.back}" id="back" mini="true" primary="true"
                            style="left: 143px; top: 336px; position: absolute; width: 72px" text="&lt; Regresar"/>
                        <ui:staticText binding="#{listarPoliticaA.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 216px; top: 120px; position: absolute" text="Historial de Políticas"/>
                        <ui:button action="#{listarPoliticaA.button1_action}" binding="#{listarPoliticaA.button1}" id="button1" mini="true" primary="true"
                            style="left: 47px; top: 120px; position: absolute; width: 71px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
